package com.itheima.prize.commons.db.service;

import com.itheima.prize.commons.db.entity.CardUser;
import com.itheima.prize.commons.db.entity.ViewCardUserHit;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.prize.commons.utils.ApiResult;
import com.itheima.prize.commons.utils.PageBean;

/**
 * @author shawn
 * @description 针对表【view_card_user_hit】的数据库操作Service
 * @createDate 2023-12-26 11:58:48
 */
public interface ViewCardUserHitService extends IService<ViewCardUserHit> {

    /**
     * 根据用户信息查询我的奖品
     */
    ApiResult<PageBean<ViewCardUserHit>> getPrizeByUserInfo(CardUser user, int gameId, int curPage, int limit);

    /**
     * 根据活动id查询中奖列表
     */
    ApiResult<PageBean<ViewCardUserHit>> getHitByGameId(int gameId, int currPage, int limit);
}
